import baseRequest from "./base";
//type类型 0、首页轮播图，1、金刚区，2、首页table，3、分类，4、分类明细
//添加 编辑
export const ApiCreateOrEditInfo = (data: any) => {
    return baseRequest({url: "/sys/config/img/save", data});
};

//查询
export const ApiFindInfo = (data: any) => {
    return baseRequest({url: "/sys/config/img/list", data});
};

//删除
export const ApiDelInfo = (data: any) => {
    return baseRequest({url: "/sys/config/img/delete", data});
};

// 美团活动添加或者编辑
export const ApiPrmoCreateOrEditInfo = (data: any) => {
    return baseRequest({url: "/prmo/save", data});
};

//美团活动查询
export const ApiPrmoFind = () => {
    return baseRequest({url: "/prmo/list", data: {}});
};

//美团活动删除
export const ApiPrmoDel = (pkId: any) => {
    return baseRequest({url: "/prmo/delete", data: {pkId}});
};

//过审列表
export const ApiVersionList = () => {
    return baseRequest({url: "/sys/version/list"});
};

//过审配置信息编辑 (新增修改)
export const ApiVersionEditInfo = (data: any) => {
    return baseRequest({url: "/sys/version/save", data});
};

//过审配置信息删除
export const ApiVersionDel = (pkId: any) => {
    return baseRequest({url: "/sys/version/delete", data: pkId});
};
